package cn.trigram.config;

import org.springframework.boot.autoconfigure.web.ErrorProperties;
import org.springframework.boot.autoconfigure.web.ResourceProperties;
import org.springframework.boot.autoconfigure.web.reactive.error.DefaultErrorWebExceptionHandler;
import org.springframework.boot.web.reactive.error.ErrorAttributes;
import org.springframework.context.ApplicationContext;

/**
 * 默认网关错误网络异常处理程序
 * <p>
 * 当gateway发生路由错误时
 *
 * @author 一日看尽长安花
 * @date 2022/02/18 19:27:24
 */
public class GatewayDefaultErrorWebExceptionHandler extends DefaultErrorWebExceptionHandler {


  public GatewayDefaultErrorWebExceptionHandler(
      ErrorAttributes errorAttributes,
      ResourceProperties resourceProperties,
      ErrorProperties errorProperties,
      ApplicationContext applicationContext
  ) {

    super(errorAttributes, resourceProperties, errorProperties, applicationContext);
  }


}
